Plc Working Principle